package com.swjd.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.swjd.pojo.Home;
import com.swjd.pojo.Order;
import com.swjd.service.IHomeService;
import com.swjd.service.IOrderService;
@Controller
public class OrderController {

	@Autowired
	private IOrderService service;
	
	@RequestMapping("getSel.do")
	public String getAll(Model model){
		List<Order> list=service.allOrders();
		model.addAttribute("list",list);
		return "order.jsp";
	}
}
